package com.ruoyi.system.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.service.VehicleService;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;

@RestController
@RequestMapping("/camara")
public class CamaraController {

    @Resource
    VehicleService vehicleService;

    @PostMapping("/recognition")
    public AjaxResult recognition(MultipartFile file){
            return vehicleService.recognition(file);
    }


    @PostMapping("/outRecognition")
    public AjaxResult outRecognition(MultipartFile file){
        return vehicleService.outRecognition(file);
    }
}
